import request from '@/utils/request'

// 查询列表
export function list(query) {
  return request({
    url: '/mine/score/List',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getScore(id) {
  return request({
    url: '/mine/score/' + id,
    method: 'get'
  })
}

// 新增执法
export function addScore(data) {
  return request({
    url: '/mine/score',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 修改执法信息
export function updateScore(data) {
  return request({
    url: '/mine/score/edit',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 删除执法信息
export function delScore(id) {
  return request({
    url: '/mine/score/' + id,
    method: 'delete'
  })
}
